package com.sale.system.service;

import com.sale.common.mybatis.core.page.PageQuery;
import com.sale.common.mybatis.core.page.TableDataInfo;
import com.sale.system.domain.dto.MaterialAccessoriesDto;
import com.sale.system.domain.vo.MaterialAccessoriesVo;

/**
 * @Description 辅料信息server
 * @Date 23-12-06
 * @Author hl
 **/
public interface IMaterialAccessoriesService {

    /**
     * 获取辅料配置
     */
    TableDataInfo<MaterialAccessoriesDto> selectAccessoriesList(MaterialAccessoriesVo materialAccessoriesVo, PageQuery pageQuery);

    /**
     * 新增辅料信息
     */
    int insertAccessories(MaterialAccessoriesVo materialAccessoriesVo) throws Exception;

    /**
     * 删除辅料信息
     */
    int deleteAccessories(String materialId) throws Exception;

    /**
     * 根据编号获取详细信息
     */
    MaterialAccessoriesDto selectAccessoriesById(long materialId);

    /**
     * 修改辅料信息
     */
    int updateAccessoriesEdit(MaterialAccessoriesVo materialAccessoriesVo) throws Exception;

    /**
     * 辅料冻结
     */
    int updateAccessoriesEditFreeze(MaterialAccessoriesVo materialAccessoriesVo);

    /**
     * 辅料冻结
     */
    int updateEditFreeze(Long materialId);

    /**
     * 辅料解冻
     */
    int updateEditThaw(Long materialId);
}
